﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeetingPlateFile.aspx.cs" Inherits="Meeting.Web.Admin.MeetingPre.MeetingPlateFile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>地块信息</title>
    <script type="text/javascript" src="../../Scripts/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="../../Scripts/artDialog4.1.6/artDialog.js?skin=blue"></script>
    <script type="text/javascript" src="../../Scripts/artDialog4.1.6/plugins/iframeTools.js"></script>
    <!--上传-->
    <link type="text/css" rel="stylesheet" href="../../Scripts/jquery.uploadify-v2.1.4/uploadify.css" />
    <script type="text/javascript" language="javascript" src="../../Scripts/jquery.uploadify-v2.1.4/jquery.uploadify.v2.1.4.js"
        charset="gb2312"></script>
    <script type="text/javascript" language="javascript" src="../../Scripts/jquery.uploadify-v2.1.4/swfobject.js"
        charset="gb2312"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">

        var topicId = "";
        $(function () {

            topicId = request("TopicId");
            jQuery("#uploadify").uploadify({
                'uploader': '../../Scripts/jquery.uploadify-v2.1.4/uploadify.swf',
                'script': '../../ashx/TopicPlateHandler.ashx?tId=' + request("TopicId") + '|' + request("MeetingId"),

                'cancelImg': '../../Scripts/jquery.uploadify-v2.1.4/cancel.png',
                'folder': '/Upload',
                'sizeLimit': 1024 * 1024 * 200,
                'queueSizeLimit': 50,
                'fileDesc': '允许上传txt文档',
                'fileExt': '*.txt',
                'method': 'Post',
                'queueID': 'ShowImage',
                'buttonImg': '../../Scripts/jquery.uploadify-v2.1.4/btn.png',
                'wmode': 'transparent',
                'auto': false,
                'multi': false,
                'onComplete': function (e, q, f, data, d) {
                    // alert('上传成功');
                    //art.dialog.close();
                    //                    var Image = "<img width='120px' height='70px' src='/upload/" + data + "'/>";
                    //                    var Preview = "<a href='/upload/" + data + "'>预览</a>&nbsp;&nbsp;";
                    //                    var Original = "<a href=\"/upload/" + data + "\" target=\"_blank\">原图</a>&nbsp;&nbsp;";
                    //                    var Delete = "<a href=\"javascript:DeleteImage('" + q + "','" + data + "')\">删除</a>";
                    //                    var Div = "<div style='margin-top:5px;text-align:center'>" + Preview + Original + Delete + "</div>";
                    //$("#uploadify" + q).html(Image + Div);
                    $("#uploadify" + q).html("上传成功");
                }
            });
            jQuery("#btnBegin").click(function () { jQuery("#uploadify").uploadifyUpload(); return false; });


        }); 

    </script>
    <style type="text/css">
        .table_edit
        {
            text-align: left;
        }
        .table_edit tr
        {
            height: 32px;
        }
        
        input, textarea
        {
            border: 1px solid #AED0EA;
            padding: 2px;
            height: 16px;
        }
    </style>
</head>
<body>
    <div id="ShowImage" style="width: 400px; height: auto; margin: 5px auto 0;">
    </div>
    <div style="clear: both; font-size: 1%; line-height: 1%; height: 0;">
    </div>
    <div style="padding-top: 5px; text-align: center;">
        <input type="file" name="uploadify" id="uploadify" />&nbsp;&nbsp; <a id="btnBegin"
            href="javascript:return false">
            <img alt="开始上传" src="../../Scripts/jquery.uploadify-v2.1.4/btnstart.png" width="120px"
                height="30px" style="border: 0px" /></a>
    </div>
    <div style="padding-top: 5px; text-align: center; color: Red;">
        允许上传txt文档
    </div>
</body>
</html>
